The "Read Exception Status" (ExStatus) data group uses function code 7 to read the contents of eight Exception Status outputs in a remote device, using the protocol described in the Modbus specification. The function provides a simple method for accessing this information, because the Exception Output references are known (no output reference is needed in the function).
The normal response contains the status of the eight Exception Status outputs. The outputs are packed into one data byte, with one bit per output. The status of the lowest output reference is contained in the least significant bit of the byte. The contents of the eight Exception Status outputs are device specific.
The "Read Exception Status" data group's dgCat attribute must be set to ExStatus.
For more information about working with device template files, see Device Template Files.
Example
|
<ExStatus dgCat="ExStatus" niceName="Read Exception Status" canSend="false" uccSend="false"> <dgElements byteOrder="bigEndian" secLev="4" type="ui1"> <Status desc="Exception Status" dMask="0x%02x"/> <Status7 desc="Status Bit 7" type="boolean" bPos="7" len="1" ref="Status"/> <Status6 desc="Status Bit 6" type="boolean" bPos="6" len="1" ref="Status"/> <Status5 desc="Status Bit 5" type="boolean" bPos="5" len="1" ref="Status"/> <Status4 desc="Status Bit 4" type="boolean" bPos="4" len="1" ref="Status"/> <Status3 desc="Status Bit 3" type="boolean" bPos="3" len="1" ref="Status"/> <Status2 desc="Status Bit 2" type="boolean" bPos="2" len="1" ref="Status"/> <Status1 desc="Status Bit 1" type="boolean" bPos="1" len="1" ref="Status"/> <Status0 desc="Status Bit 0" type="boolean" bPos="0" len="1" ref="Status"/> </dgElements> </ExStatus> |